package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Wenda;
import cn.wolfcode.luowowo.article.query.WendaQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WendaMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Wenda record);

    Wenda selectByPrimaryKey(Long id);

    List<Wenda> selectAll();

    int updateByPrimaryKey(Wenda record);

    List<Wenda> selectForList(WendaQuery qo);

    List<Wenda> selectByDestIdT5(@Param("destId") Long destId, @Param("outId") Long outId);

    void updateNum(Wenda wenda);
}